<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light_inline.css" rel="stylesheet">
<style type="text/css">
@media ( max-width : 767px) {
	[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]
		{
		width: 49%;
		float: left;
		margin-right: 7px;
	}
}
</style>
<title>欢迎</title>
</head>
<body>
	<div class="container-fluid">
	<form action="${ctx }/store/modify.jhtml">
	<input type="hidden" name="id" value="${store.id }" />
		<div class="row-fluid">
			<div class="span12">房屋编号：<input type="text" name="status" value="123" /> </div>
		</div>
		<div class="row-fluid">
			<div class="span3">房屋编号：<input type="text" name="roomCode" value="${store.roomCode }" /> </div>
			<div class="span9">物业地址：<input type="text" name="address" class="span7" value="${store.address }"/></div>
		</div>
		<div class="row-fluid">
			<div class="span3">房屋类型：
				<select name="type" id="type">
					<option value="门面">门面</option>
					<option value="住房">住房</option>
				</select>
				</div>
			<div class="span3">建筑面积：<input type="text" name="buildingArea" value="${store.buildingArea }"/></div>
			<div class="span3">使用面积：<input type="text" name="useArea" value="${store.useArea }"/></div>
		</div>
		<div class="row-fluid">
			<div class="span3">装修情况：
				<select name="decoration" id="decoration">
					<option value="毛坯">毛坯</option>
					<option value="普通装修">普通装修</option>
					<option value="一般装修">一般装修</option>
					<option value="精装修">精装修</option>
				</select>
			</div>
			<div class="span3">出租价位：<input type="text" name="price" value="${store.price }"/></div>
			<div class="span3">目前状态：
				<select name="status" id="status">
					<option value="待租">待租</option>
					<option value="已租">已租</option>
				</select>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span9">备注：<br><textarea name="remarks" rows="10" class="span12">${store.remarks }</textarea> </div>
		</div>
		<div class="row-fluid">
			<div class="span8">
				<input type="submit" value="保存" class="btn green">
				<a href="${ctx }/store/list.jhtml" class="btn ">返回</a>
			</div>
		</div>
		</form>
	</div>
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<script type="text/javascript">
//"decoration"
	$("#decoration").val("${store.decoration}");
	$("#type").val("${store.type}");
	$("#status").val("${store.status}");
</script>
<script type="text/javascript">
	var forword = function(obj) {
		if (obj == 1) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='applyArticle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 2) {
			var $a = $(window.parent.document).find(
					".page-sidebar > ul > li > ul > li > a[href$='exp']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 3) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='managetSubject']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 4) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='articleRecycle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		}
	}
	var text = function(obj) {
		$(window.parent.document).find(".page-sidebar > ul > li").removeClass(
				'active');
		$(window.parent.document).find(
				".page-sidebar > ul > li > a > span[class='title']").each(
				function(i) {
					var text = $(this).text();
					if (text == obj) {
						$(this).parent().parent().addClass('open active');
						$(this).after('<span class="selected"></span>')
					}
				});
	}
</script>
</html>